]> dgit.raspbian.org Git - fontforge.git/commitdiff
Make afm and pfb timezone-independent
authorChris Lamb <lamby@debian.org>
Mon, 20 Jul 2026 17:47:02 +0000 (17:47 +0000)
committerBastian Germann <bage@debian.org>
Sat, 8 Aug 2026 13:14:17 +0000 (15:14 +0200)
Gbp-Pq: Name 0005-afm-and-pfb-timezone-independent.patch

fontforge/dumppfa.c
fontforge/splinesaveafm.c

index 59e6647d3d3bad9dd56caac4eb1c188d7a0f710e..2ed129b755d6ed60037a7132abb48835d78656de 100644 (file)
@@ -1781,7 +1781,7 @@ static void dumpfontcomments(void (*dumpchar)(int ch,void *data), void *data,
        dumpf(dumpchar,data,"%%%%Title: %s\n", sf->fontname);
        dumpf(dumpchar,data,"%%Version: %s\n", sf->version);
     }
-    dumpf(dumpchar,data,"%%%%CreationDate: %s", ctime(&now));
+    dumpf(dumpchar,data,"%%%%CreationDate: %s", asctime(gmtime(&now)));
     if ( author!=NULL )
        dumpf(dumpchar,data,"%%%%Creator: %s\n", author);
 
index 446faa705e6fbeea8f2d9d83e07d3348f5c6d393..463533e6198615247f9c2df72d73cdfa27771eac 100644 (file)
@@ -1176,7 +1176,7 @@ static void AfmSplineFontHeader(FILE *afm, SplineFont *sf, int formattype,
                          "StartFontMetrics 2.0\n" );
     fprintf( afm, "Comment Generated by FontForge %s\n", FONTFORGE_VERSION );
     now = GetTime();
-    fprintf(afm,"Comment Creation Date: %s", ctime(&now));
+    fprintf(afm,"Comment Creation Date: %s", asctime(gmtime(&now)));
     fprintf( afm, "FontName %s\n", sf->fontname );
     if ( sf->fullname!=NULL ) fprintf( afm, "FullName %s\n", sf->fullname );
     if ( sf->familyname!=NULL ) fprintf( afm, "FamilyName %s\n", sf->familyname );